package com.example.yaja.yaja.service;

import com.example.yaja.yaja.entity.Travels;

import java.util.List;

/**
 * Created by Zero on 2017/12/5.
 */
public interface TravelsService {

    int addTravels(Travels travels);
    List<Travels> findTravelsByNumber(Integer startNumber, Integer endNumber);

    Travels findTravelsById(Integer travelsId);

    int updateTravels(Travels travels);

    List<Travels> findTravelsByUserId(Integer userId);

    int updateState(Integer travelsId,Integer state);
}
